package NovelBar.mapper;

import NovelBar.entity.Goods;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Mapper
public interface GoodsMapper {
	List<Goods> loadGoodsByBusiness(@Param("business") String business);

	List<Goods> loadAllGoods();

	void addGoods(Goods goods);

	List<Goods> loadGoodsByRequire(@Param("goodsNameRequire") String goodsNameRequire,@Param("business") String business,@Param("priceMax") int priceMax,@Param("priceMin") int priceMin);
}
